package Demo_0415;

import Demo_0401.SqListClass;

/**
 * @author:zhengyilong
 * @email:1797344574@qq.com
 * @phone:13479394730
 * @desc:
 * @DateTime:2022/4/15 9:30
 **/
public class Test {
    public static void main(String[] args) {
        SqStackClass<Integer> integerSqStackClass = new SqStackClass<>();
        System.out.println(integerSqStackClass.empty());

        integerSqStackClass.push(0);
        System.out.println(integerSqStackClass);
        integerSqStackClass.push(1);
        System.out.println(integerSqStackClass);
        integerSqStackClass.push(2);
        System.out.println(integerSqStackClass);
        integerSqStackClass.push(3);
        System.out.println(integerSqStackClass+"\n");

        Integer pop = integerSqStackClass.pop();
        System.out.println(pop);
        System.out.println(integerSqStackClass+"\n");

        Integer peek = integerSqStackClass.peek();
        System.out.println(peek);
        System.out.println(integerSqStackClass+"\n");
    }
}

